<?php
$page_title="Manage Member Queries";
include("includes/header.php");

$query_id=$_GET["query_id"];
$mode=$_GET["mode"];


if($mode=="edit") 	$query_info=@array_pop(qry_data("select p.*,q.* from bkitc_queries q JOIN bkitc_profiles p on  q.member_id=p.registrant_id where q.query_id=".$query_id));
if($mode=="del"){
	exec_qry("update bkitc_queries set rec_status=0 where query_id=".$query_id);//Soft Delete
	header("location:queries_list.php");
}
?>				
<div class="fleft">
<ul class="subMenu">

<li><a href="queries_list.php?mode=result">Back to Queries List </a></li>
</ul>
</div>
<div class="cleardiv"></div>
	<div style="width:100%" class="content_bg">
	<form method="post" action="edit_queries_pro.php?query_id=<?=$_GET["query_id"]?>" > 
		<table class="voip_form" width="600"  cellpadding="8" border="0" cellspacing="3"> 
			<tr>
				<!--<td  height="10" style="padding:2px;margin:2px" colspan="2" align="right"><small style="font-size:11px"> <i><?=ast()?>  Required fields.</i></small></td>-->
			</tr>
		
			
			<tr>
				<td class="frmLabel1">
				<b>From : </b><br/>
				<?=formatMemberCode($query_info["registrant_id"])?><br/>
				 <?=$query_info["full_name"]?><br/>
				 <?=$query_info["email_id"]?><br/>
				 <?=$query_info["mobile_no"]?><br/>
				 <?=$query_info["reg_chat_id"]?><br/>
				 
				</td>
			</tr>
			
			<tr>
				<td class="frmLabel" valign="top" colspan="2"> Query Type :
				<?=$query_types[(int)$query_info["query_type"]]?>
				</td>
				 
			</tr>
			
			<tr>
				<td class="frmLabel" valign="top" colspan="2"> Query Content <br/><br/>
				 <textarea class="txtarea"  id="message" rows="4" cols="90" name="message" style="width:800px;height:100px;border:0px;"><?=$query_info["message"]?></textarea> </td>
			</tr>
			
			
	
			<tr bgcolor="#fff" style="height:50px;margin:0px;padding:0px;">
				
				<td  style="margin:0px;padding:2px;" align="right" colspan="2">
				<!--<input type="submit" class="button"  value="Save Info">&nbsp;
				<input class="button" type="reset">
				-->
				<input onclick="location.href='queries_list.php'"  type="button" class="button" value=" Back to Query List">
				</td>
			</tr>
			
		</table>
	</form>
</div>

<div style="margin-bottom:40px">

</div>

<? include("includes/footer.php");?>
